package org.xpandaframework.base.curd.impl;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Id;

/**
 * <p>
 * CopyRright (c)2008-2014: Camelot
 * <p>
 * Project: xpandaframework Maven Webapp
 * <p>
 * Module ID: <模块类编号可以引用系统设计中的类编号>
 * <p>
 * Comments: 框架基础实体类
 * <p>
 * JDK version used: JDK1.7
 * <p>
 * NameSpace: org.xpandaframework.base.curd.impl.BaseEntity.java
 * <p>
 * Author: Angus
 * <p>
 * Create Date: 2014-11-21
 * <p>
 * Modified By: <修改人中文名或拼音缩写>
 * <p>
 * Modified Date: <修改日期>
 * <p>
 * Why & What is modified: <修改原因描述>
 * <p>
 * Version: v1.0
 */
public class BaseEntity implements Serializable {

  /**
   * @Fields serialVersionUID : 序列化
   */
  private static final long serialVersionUID = -2063441141261004817L;
  // ID 唯一主键
  @Id
  private String id;
  // 创建时间
  @Column
  private Date createTime;
  // 操作时间
  @Column
  private Date operationTime;
  // 创建者
  @Column
  private String creator;
  // 操作者
  @Column
  private String operator;
  // 操作标志（C、U、D）
  @Column
  private String operationFlag;

  public String getId() {
    return this.id;
  }

  public void setId(String id) {
    this.id = id;
  }

  public Date getCreateTime() {
    return this.createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }

  public Date getOperationTime() {
    return this.operationTime;
  }

  public void setOperationTime(Date operationTime) {
    this.operationTime = operationTime;
  }

  public String getCreator() {
    return this.creator;
  }

  public void setCreator(String creator) {
    this.creator = creator;
  }

  public String getOperator() {
    return this.operator;
  }

  public void setOperator(String operator) {
    this.operator = operator;
  }

  public String getOperationFlag() {
    return this.operationFlag;
  }

  public void setOperationFlag(String operationFlag) {
    this.operationFlag = operationFlag;
  }

}
